.home {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f8f9fa;
}

.content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 24px;
}

.canvas {
    flex: 1;
    position: relative;
    background: #ffffff;
    overflow: auto;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateZ(0);
    will-change: transform;
    contain: layout style paint;
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-overflow-scrolling: touch;
}

.selected-canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    overflow: auto;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.selected-canvas-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.back-button,
.save-button,
.clear-button,
.export-button {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-button {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.save-button {
    background: linear-gradient(135deg, #13c2c2, #36cfc9);
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 194, 194, 0.3);
}

.clear-button {
    background: linear-gradient(135deg, #f5222d, #ff4d4f);
}

.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 34, 45, 0.3);
}

.export-button {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.export-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.save-icon,
.clear-icon,
.back-icon,
.export-icon {
    font-size: 18px;
}

.add-canvas-button {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var( --color-gradient, linear-gradient(135deg, var(--color-primary, #1890ff), #36cfc9));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.add-canvas-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #36cfc9, var(--color-primary, #1890ff));
    filter: brightness(1.1);
}


/* .add-canvas-button::after {
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
} */

.add-canvas-button:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.plus-icon {
    color: white;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.invite-code-container {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.invite-code-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.invite-code-container .ant-input {
    width: 200px;
    margin-right: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.invite-code-container .ant-input:focus {
    border-color: var(--color-primary, #1890ff);
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.canvas-grid-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.canvas-grid {
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.canvas-grid::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.canvas-grid::-webkit-scrollbar-track {
    background: transparent;
}

.canvas-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.canvas-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.card-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary, #1890ff), #36cfc9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-item:hover::before {
    opacity: 1;
}

.card-content {
    margin-bottom: 20px;
}

.card-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.card-content p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.card-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .content {
        padding: 16px;
    }
    .canvas-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .add-canvas-button {
        left: 24px;
        top: 24px;
        width: 56px;
        height: 56px;
    }
    .invite-code-container {
        top: 16px;
        right: 16px;
        padding: 8px 12px;
    }
    .invite-code-container .ant-input {
        width: 160px;
    }
    .input-search{
        width: 252px;
    }
}